﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for BUS_Contact
/// </summary>
public class BUS_Contact :DAL_Contacts
{
    DataTable dtO = new DataTable();
    public Boolean Contact_Insert(DTO_Contact contact)
    {
        try
        {
            if (DAL_Contact_Insert(contact))
            {
                return true;
            }
            else
                return false;
        }
        catch
        {
            return false;
        }
    }
    public DataTable Contact_getById(int status, int lh, int id)
    {
        try
        {
            dtO = DAL_Contact_getById(status, lh, id);
        }
        catch
        {
        }
        return dtO;
    }
    public Boolean Contact_Update(DTO_Contact dtoC)
    {
        try
        {
            if (DAL_Contact_Update(dtoC))
            {
                return true;
            }
            else
                return false;
        }
        catch
        {
            return false;
        }
    }
    public DataTable Contact_getData(int status, int lh)
    {
        try
        {
            dtO = DAL_Contact_getData(status, lh);
        }
        catch
        {
        }
        return dtO;
    }
}